package ru.ncedu.java.sean.robots.Test.java;

public class Robot {
	Point location;
    int status;
    int id;
	public Robot(Point loc)
	{
		this.location=loc;
		this.status=1;
	}
	
	public Robot()
	{
		Point p = new Point();
		this.location=p;
		this.status=1;
	}
	
	public Robot(int a,int b)
	{
		Point p = new Point(a,b);
		this.location = p;
		this.status=1;
	}
	
	
	void moveUp()
	{
		this.location.y+=1;
	}
	
	void moveDown()
	{
		this.location.y-=1;
	}
	
	void moveLeft()
	{
		this.location.x-=1;
	}
	
	void moveRight()
	{
		this.location.x+=1;
	}
	
	public void printRobot()
	{
		System.out.println("id="+this.id);
		this.location.printPoint();
		System.out.println("status="+this.status);
	}
}
